import {getDeptTree} from "../../api/dept";

const dept = {

  state: {},
  mutations: {},
  actions: {
    //获取部门树
    getSelectDepartmentTree() {
      return new Promise(resolve => {
        getDeptTree().then(res=>{
          resolve(res.data.data.dept_tree)
        })
      })
    }
  },
  getters: {

  }

}

export default dept
